<link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="/static/bootstrap/dashboard.css" rel="stylesheet">
<link href="/static/bootstrap/site.min.css" rel="stylesheet">
<link href="/static/bootstrap/css/bootstrap-switch.css" rel="stylesheet">
<script src="/static/jquery/jquery-1.11.2.min.js"></script>
<script src="/static/bootstrap/js/bootstrap.min.js"></script>
<script src="/static/bootstrap/js/bootstrap-switch.min.js"></script>
<script src="/static/layer/layer.js"></script>
<script src="/static/mustache.js"></script>

<form data-action-type="nodeSave" name="edites" class="form-horizontal" id="basic_info" style="padding: 10px;" action="">
    <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">标题</label>
        <div class="col-sm-6">
            <input name="node_title" type="text" class="form-control" id="inputEmail3" placeholder="请输入标题" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">菜单名称</label>
        <div class="col-sm-6">
            <input name="node_name" type="text" class="form-control" id="inputPassword3" placeholder="请输入菜单名称" value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">菜单别名</label>
        <div class="col-sm-6">
            <input name="nav_name" type="text" class="form-control" id="" placeholder="菜单别名，默认为空" value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">是否显示</label>
        <div class="col-sm-6">
            <select class="form-control" name="display">
                <option value="1">显示</option>
                <option value="0">隐藏</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-6">
            <button name="submit" type="submit" class="btn btn-primary" data-action="control_save">保存</button>
            <button type="button" class="btn btn-default">还原</button>
        </div>
    </div>
</form>

<script>
    $(function(){

        layer.config({
            skin:'layer-ext-moon',
            extend:'skin/moon/style.css'
        });


        $('form').on('submit',function(){
            $.post(
                    $(this).attr('action'),
                    $(this).serialize(),
                    function(res){
                        layer.msg(res.info, {icon:res.status});
                    }
            );
            return false;
        });
    });
</script>